import { createRouter, createWebHistory } from "vue-router";
import Home from "../views/Home.vue";

const routes = [
  {
    path:'/',
    redirect:"/home/index"
  },
  {
    path: "/home",
    name: "Home",
    component: Home,
    children:[
      {
        path:"index",
        component:()=>import("../components/Index")
      },
      {
        path:"mymusic",
        component:()=>import("../components/Mymusic")
      }
    ]

  },
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
});

export default router;
